import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description: 牛客网.入门题.四舍五入
 */

class Main {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        double d= scanner.nextDouble();

        //write your code here......
        d *= 10;
        if(d % 10 >= 5){
            d += 10;
        }
        int i = (int)(d / 10);
        System.out.println(i);
    }
}

public class Test {
}
